home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / util / gnu / a2_0b_Emacs_sr.lha / Emacs-19.25 / lisp / paths.el < prev    next >
Lisp/Scheme  |  1994-08-27  |  5KB  |  128 lines

  1. ;;; paths.el --- define pathnames for use by various Emacs commands.
  2.  
  3. ;; Copyright (C) 1986, 1988, 1994 Free Software Foundation, Inc.
  4.  
  5. ;; Maintainer: FSF
  6. ;; Keywords: internal
  7.  
  8. ;; This file is part of GNU Emacs.
  9.  
  10. ;; GNU Emacs is free software; you can redistribute it and/or modify
  11. ;; it under the terms of the GNU General Public License as published by
  12. ;; the Free Software Foundation; either version 2, or (at your option)
  13. ;; any later version.
  14.  
  15. ;; GNU Emacs is distributed in the hope that it will be useful,
  16. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18. ;; GNU General Public License for more details.
  19.  
  20. ;; You should have received a copy of the GNU General Public License
  21. ;; along with GNU Emacs; see the file COPYING.  If not, write to
  22. ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  23.  
  24. ;;; Commentary:
  25.  
  26. ;; These are default settings for names of certain files and directories
  27. ;; that Emacs needs to refer to from time to time.
  28.  
  29. ;; If these settings are not right, override them with `setq'
  30. ;; in site-init.el.  Do not change this file.
  31.  
  32. ;;; Code:
  33.  
  34. (defvar Info-default-directory-list
  35.   (let ((start (list "gnuemacs-19.25:info/"
  36.              ;; This comes second so that, if it is the same
  37.              ;; as configure-info-directory (which is usually true)
  38.              ;; and Emacs has been installed (also usually true)
  39.              ;; then the list will end with two copies of this;
  40.              ;; which means that the last dir file Info-insert-dir
  41.              ;; finds will be the one in this directory.
  42.              "gnuemacs:info/"))
  43.     (configdir (file-name-as-directory configure-info-directory)))
  44.     (setq start (nconc start (list configdir)))
  45.     start)
  46.   "List of directories to search for Info documentation files.
  47. They are searched in the order they are given in this list.
  48. Therefore, the directory of Info files that come with Emacs
  49. normally should come last (so that local files override standard ones).")
  50.  
  51. (defvar news-path "/usr/spool/news/"
  52.   "The root directory below which all news files are stored.")
  53.  
  54. (defvar news-inews-program
  55.   (cond ((file-exists-p "/usr/bin/inews") "/usr/bin/inews")
  56.     ((file-exists-p "/usr/local/inews") "/usr/local/inews")
  57.     ((file-exists-p "/usr/local/bin/inews") "/usr/local/bin/inews")
  58.     ((file-exists-p "/usr/lib/news/inews") "/usr/lib/news/inews")
  59.     (t "inews"))
  60.   "Program to post news.")
  61.  
  62. (defvar gnus-default-nntp-server ""
  63.   ;; set this to your local server
  64.   "The name of the host running an NNTP server.
  65. If it is a string such as \":DIRECTORY\", then ~/DIRECTORY
  66. is used as a news spool.  `gnus-nntp-server' is initialised from NNTPSERVER
  67. environment variable or, if none, this value.")
  68.  
  69. (defvar gnus-nntp-service "nntp"
  70.   "NNTP service name, usually \"nntp\" or 119).
  71. Go to a local news spool if its value is nil, in which case `gnus-nntp-server'
  72. should be set to `(system-name)'.")
  73.  
  74. (defvar gnus-local-domain nil
  75.   "*Your domain name without a host name: for example, \"ai.mit.edu\".
  76. The DOMAINNAME environment variable is used instead if defined.
  77. If the function `system-name' returns a fully qualified domain name,
  78. there is no need to set this variable.")
  79.  
  80. (defvar gnus-local-organization nil
  81.   "*The name of your organization, as a string.
  82. The `ORGANIZATION' environment variable is used instead if defined.")
  83.  
  84. (defvar gnus-startup-file "~/.newsrc"
  85.   "The file listing groups to which user is subscribed.
  86. Will use `gnus-startup-file'-SERVER instead if exists.")
  87.  
  88. (defvar rmail-file-name "~/RMAIL"
  89.   "Name of user's primary mail file.")
  90.  
  91. (defconst rmail-spool-directory
  92.   (cond ((string-match "^[^-]+-[^-]+-sco3.2v4" system-configuration)
  93.      "/usr/spool/mail/")
  94.     ;; SVR4 is said to use /var/mail, and make /usr/mail a link to that;
  95.     ;; but since I'm not sure it's generally true, calling file-exists-p
  96.     ;; prevents lossage if it isn't true. -- rms.
  97.     ((and (string-match "^[^-]+-[^-]+-sysv4" system-configuration)
  98.           (file-exists-p "/var/mail"))
  99.      "/var/mail/")
  100.     ((memq system-type '(dgux hpux usg-unix-v unisoft-unix rtu irix))
  101.      "/usr/mail/")
  102.     ((eq system-type 'netbsd)
  103.      "/var/mail/")
  104.     (t "/usr/spool/mail/"))
  105.   "Name of directory used by system mailer for delivering new mail.
  106. Its name should end with a slash.")
  107.  
  108. (defconst sendmail-program
  109.   (cond
  110.     ((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail")
  111.     ((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail")
  112.     ((file-exists-p "/usr/ucblib/sendmail") "/usr/ucblib/sendmail")
  113.     (t "fakemail"))            ;In ../etc, to interface to /bin/mail.
  114.   "Program used to send messages.")
  115.  
  116. (defconst term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/")
  117.   "If non-nil, Emacs startup does (load (concat term-file-prefix (getenv \"TERM\")))
  118. You may set this variable to nil in your `.emacs' file if you do not wish
  119. the terminal-initialization file to be loaded.")
  120.  
  121. (defconst abbrev-file-name 
  122.   (if (eq system-type 'vax-vms)
  123.       "~/abbrev.def"
  124.     "~/.abbrev_defs")
  125.   "*Default name of file to read abbrevs from.")
  126.  
  127. ;;; paths.el ends here
  128.